import request from '@/utils/request'

// 获取评论列表
export const reqCommentList = () => request({
  url: '/comment/list',
  method: 'get'
})
export const reqCommentListByPage = (pageParams, comment, startTime, endTime) => request({
  url: '/comment/listByPage',
  method: 'post',
  data: {
    page: pageParams.page,
    pageSize: pageParams.pageSize,
    username: comment.username,
    startTime: startTime,
    endTime: endTime
  }
})

// 回复评论  comment包括id和内容
export const reqReply = (comment) => request({
  url: '/comment/update',
  method: 'post',
  data: comment
})
export const deleteReply = (comment) => request({
  url: '/comment/deleteComment',
  method: 'post',
  data: comment
})
export const reqAudit = (comment) => request({
  url: '/comment/auditStatus',
  method: 'post',
  data: comment
})

